package org.jeecg.modules.htxincailiao.order.domain.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * @Description: ht_order_salon
 * @Author: jeecg-boot
 * @Date:   2021-08-25
 * @Version: V1.0
 */
@Data
@TableName("ht_order_salon")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ht_order_salon对象", description="ht_order_salon")
public class HTOrderIndustryVO implements Serializable {

    /**报名对象 0-展商 1-观众 */
    @Excel(name = "报名对象 0-展商 1-观众 ", width = 15)
    @ApiModelProperty(value = "报名对象 0-展商 1-观众 ")
    private Integer applyObjectType=0;

    /**会议ID*/
    @Excel(name = "会议ID", width = 15)
    @ApiModelProperty(value = "会议ID")
    private String meetingId;

    /**会议ID*/
    @Excel(name = "展会ID", width = 15)
    @ApiModelProperty(value = "展会ID")
    private String exhibitionId;

    /**沙龙ID*/
    @Excel(name = "沙龙ID", width = 15)
    @ApiModelProperty(value = "沙龙ID")
    private String salonId;


    /**订单ID*/
    @Excel(name = "订单ID", width = 15)
    @ApiModelProperty(value = "订单ID")
    private String orderId;
    ;
    /**沙龙主办方*/
    @Excel(name = "沙龙主办方", width = 15)
    @ApiModelProperty(value = "沙龙主办方")
    private String organizer;
    /**下单时展会主图*/
    @Excel(name = "下单时展会主图", width = 15)
    @ApiModelProperty(value = "下单时展会主图")
    private String cover;
    /**会议名称*/
    @Excel(name = "会议名称", width = 15)
    @ApiModelProperty(value = "会议名称")
    private String name;
    /**展商参展费*/
    @Excel(name = "展商参展费", width = 15)
    @ApiModelProperty(value = "展商参展费")
    private BigDecimal exhibitorCost;
    /**观众观展费*/
    @Excel(name = "观众观展费", width = 15)
    @ApiModelProperty(value = "观众观展费")
    private BigDecimal audienceCost;
    /**购票数量*/
    @Excel(name = "购票数量", width = 15)
    @ApiModelProperty(value = "购票数量")
    private Integer quantity;
    /**订单状态：0-待付款、1-待发货、2-待收货、3-已完成、4-已取消*/
    @Excel(name = "订单状态：0-待付款、1-待发货、2-待收货、3-已完成、4-已取消", width = 15)
    @ApiModelProperty(value = "订单状态：0-待付款、1-待发货、2-待收货、3-已完成、4-已取消")
    private Integer status;
    /**会议地址*/
    @Excel(name = "会议地址", width = 15)
    @ApiModelProperty(value = "会议地址")
    private String fullAddress;
    /**逻辑删除：1表示删除，0表示未删除。*/
    @Excel(name = "逻辑删除：1表示删除，0表示未删除。", width = 15)
    @ApiModelProperty(value = "逻辑删除：1表示删除，0表示未删除。")
    private Integer isDeleted;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
    /**报名联系人电话*/
    @Excel(name = "报名联系人电话", width = 15)
    @ApiModelProperty(value = "报名联系人电话")
    private String contactPhoneNumber;
    /**报名联系人*/
    @Excel(name = "报名联系人", width = 15)
    @ApiModelProperty(value = "报名联系人")
    private String contactPerson;


    /**报名费*/
    @Excel(name = "报名费", width = 15)
    @ApiModelProperty(value = "报名费")
    private BigDecimal applyCost;

    public BigDecimal getApplyCost() {
        if(applyObjectType == 0) {
            return exhibitorCost;
        }
        else {
            return audienceCost;
        }
    }
}
